<!DOCTYPE html>
<html lang="en">

<head>
    <title>waitPay</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="" />

    <link rel="stylesheet" href="css/bootstrap.css">
    <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
    <link href="css/menu.css" rel="stylesheet" type="text/css" media="all" /> <!-- 导航栏样式 -->
    <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css"><!-- 图标样式 -->
    <link rel="stylesheet" type="text/css" href="./css/home.css">
    <link href="css/owl.carousel.css" rel="stylesheet" type="text/css" media="all">
    <link rel="stylesheet" type="text/css" href="./css/car.css">
    <link rel="stylesheet" type="text/css" href="./css/layer.css">

    <script src="js/jquery-2.2.3.min.js"></script>
    <script src="js/jquery-scrolltofixed-min.js" type="text/javascript"></script><!-- 导航栏 -->
    <script src="js/bootstrap.js"></script>
    <script type="text/javascript" src="js/move-top.js"></script>
    <script type="text/javascript" src="js/easing.js"></script>
    <script src="js/jquery.menu-aim.js"></script>
    <script src="js/custom.js"></script>
    <script src="js/main.js"></script><!-- 导航栏 -->
    <script src="js/del.js"></script>
</head>
<body>
<div id="app">
    <div class="header">
        <div class="w3ls-header">
            <div class="w3ls-header-left">
                <p>
                    <a href="#"><img style="position: relative;left: -10px; top: -1px" src="./images/shopping.png">
                        XB全新高端购物平台
                    </a>
                </p>
            </div>
            <div class="w3ls-header-right">
                <ul>
                    <li class="dropdown head-dpdn">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"
                                aria-hidden="true"></i>人名<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="profile.html">个人中心</a></li>
                            <li><a @click="exitLogin()" href="#" @click.prevent="">注销</a></li>
                        </ul>
                    </li>
                    <li class="dropdown head-dpdn">
                        <a href="car.html" class="dropdown-toggle"><i class="fa fa-gift" aria-hidden="true"></i>购物车</a>
                    </li>
                    <li class="dropdown head-dpdn">
                        <a href="waitPay.html" class="dropdown-toggle"><i class="fa fa-credit-card-alt"
                                aria-hidden="true"></i>待支付</a>
                    </li>
                </ul>
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="header-two">
            <div class="container">
                <div class="header-logo">
                    <h1><a href="home.html"><span>X</span>Biao </a></h1>
                    <h6>Your stores. Your place.</h6>
                </div>
                <div class="header-search">
                    <form @submit.stop="">
                        <input v-model="goodsName" type="search" name="Search" placeholder="Search for a Product..." required="">
                        <button @click="search()" type="button" class="btn btn-default" >
                            <i class="fa fa-search" aria-hidden="true"> </i>
                        </button>
                    </form>
                </div>
                <div class="header-cart">
                    <div class="my-account">
                        <a href="javascript:;"></a>
                    </div>
                    <div class="cart">
                        <a href="car.html">
                            <button class="w3view-cart" type="submit" name="submit" value=""><i
                                    class="fa fa-cart-arrow-down" aria-hidden="true"></i></button>
                        </a>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
        <div class="header-three">
            <div class="container">
                <ul class="nav nav-pills nav-justified">
                    <li><a href="#" @click="toGoodsListByType(0)">全部列表</a></li>
                    <li v-for="type in types"><a href="#" @click="toGoodsListByType(type.id)" @c>{{type.goodsType}}</a></li>
                </ul>
            </div>
        </div>
    </div>


    <!-- products -->
    <div class="products">
        <div class="container">
            <div class="col-md-12 product-w3ls-right">
                <!-- breadcrumbs -->
                <ol class="breadcrumb breadcrumb1">
                    <li><a href="home.html">Home</a></li>
                    <li class="active">待支付</li>
                </ol>
                <div class="clearfix"> </div>
                <!-- //breadcrumbs -->
                <div  style="text-align: center;font-size: 18px;margin-bottom: 100px" v-if="this.orderList==''" class="goods-item">
                    <span>您尚无可支付订单，快去<a href="productList.html">逛逛</a>吧</span>
                </div>
                <div v-else="" class="shopping-car-container">
                    <div class="car-headers-menu">
                        <div class="row">
                            <div class="col-md-3 col-sm-2 col-xs-2 car-menu">商品信息</div>
                            <div class="col-md-3 col-sm-2 col-xs-2 car-menu">商品类型</div>
                            <div class="col-md-1 col-sm-2 col-xs-2 car-menu">单价</div>
                            <div class="col-md-2 col-sm-2 col-xs-2 car-menu">数量</div>
                            <div class="col-md-1 col-sm-2 col-xs-2 car-menu">金额</div>
                            <div class="col-md-2 col-sm-2 col-xs-2 car-menu">操作</div>
                        </div>
                    </div>
                    <div class="goods-content">
                        <div class="goods-item" v-for="order in this.orderList">
                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <div class="col-md-3 col-sm-2 col-xs-2 car-goods-info goods-image-column">
                                        <a href="#" @click="toDetail(order.goods)" @click.prevent="">
                                            <img class="goods-image" :src="order.goods.pic"/>
                                        </a>
                                    </div>
                                    <div class="col-md-3 col-sm-2 col-xs-2 car-goods-info goods-params">
                                        <p class="goods-info">
                                            {{order.goods.goodName}}
                                        </p>
                                    </div>
                                    <div class="col-md-1 col-sm-2 col-xs-2 car-goods-info goods-price">
                                        <span class="goods-price single-price">￥{{order.goods.price}}</span></div>
                                    <div class="col-md-2 col-sm-2 col-xs-2 car-goods-info goods-counts">
                                        <div class="input-group">
                                            <input type="text" disabled class="btn num form-control goods-count"
                                                   v-model="order.goodsCount">
                                        </div>
                                    </div>
                                    <div class="col-md-1 col-sm-2 col-xs-2 car-goods-info goods-money-count">
                                        <span class="goods-totalMoney single-total">￥{{order.goods.price*order.goodsCount}}</span></div>
                                    <div class="col-md-2 col-sm-2 col-xs-2 car-goods-info goods-operate">
                                        <a href="#" @click.prevent="" @click="toPayOder(order.orderId)" class="btn btn-primary item-delete">结算</a>
                                        <a href="#" class="btn btn-danger item-delete"  @click.prevent="" @click="deleteOderByOrderId(order.orderId)">删除</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="goods-btns text-right">
                            <input disabled class="btn btn-default goodsList-totalMoney" v-model="totalMoney">
                            <a class="btn btn-primary" @click.prevent="" @click="toPayAllOders()" href="waitPay.html">全部结算</a>
                        </div>
                    </div>
                    <!--删除确认弹框-->
                    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" id="deleteItemTip"
                        aria-labelledby="gridSystemModalLabel">
                        <div class="modal-dialog modal-sm" role="document">
                            <div class="modal-content">
                                <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                            aria-hidden="true">&times;</span></button>
                                    <h4 class="modal-title" id="gridSystemModalLabel">提示</h4>
                                </div>
                                <div class="modal-body">
                                    确认删除此商品？
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-primary deleteSure">确定</button>
                                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- //add-products -->
            </div>
            <div class="clearfix"> </div>
        </div>
    </div>
    <!--//products-->

    <!--最热商品-->
    <div class="add-products">
        <h3 class="w3ls-title">热卖商品</h3>
        <div class="container">
            <div class="container">
                <div v-for="goods in hotGoodsList" class=" w3ls-add-grids">
                    <a href="#" @click="toDetail(goods)" @click.prevent="">
                        <img :src="goods.pic">
                        <p>{{goods.goodName}}<span>${{goods.price}}</span></p>
                        <span>Shop now <i class="fa fa-arrow-circle-right" aria-hidden="true"></i></span>
                    </a>
                </div>
            </div>
        </div>
    </div>

    <div class="copy-right">
        <div class="container">
            <p>Copyright &copy; 2020.XB All rights reserved.<a target="_blank" href="#"></a></p>
        </div>
    </div>
</div>
</body>
<script src="vue/layer.js"></script>
<script src="vue/vue-2.6.11.js"></script>
<script src="vue/axios-0.19.2.min.js"></script>
<script src="myjs/waitPay.js"></script>
</html>